/* $Id: SingleClientRoleObjectManagerImpl.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.domain.manager.provider;

import java.util.Collection;
import java.util.List;

import ae.pcfc.etks.online.common.dao.ClientRoleDAO;
import ae.pcfc.etks.online.common.dao.NewNonClientCompanyRoleDAO;
import ae.pcfc.etks.online.common.domain.ClientServiceRoleReq;
import ae.pcfc.etks.online.common.domain.TTscClientRole;
import ae.pcfc.etks.online.common.domain.manager.SingleClientRoleObjectManager;
import ae.pcfc.etks.online.common.exception.LookupException;
import ae.pcfc.etks.online.common.exception.PersistenceException;

public class SingleClientRoleObjectManagerImpl implements SingleClientRoleObjectManager{
	
private NewNonClientCompanyRoleDAO newNonClientCompanyRoleDAO;
private ClientRoleDAO clientRoleDAO;

/**
 * setClientRoleDAO
 * 
 * @param clientRoleDAO
 * void
 */
public void setClientRoleDAO(ClientRoleDAO clientRoleDAO) {
	this.clientRoleDAO = clientRoleDAO;
}

/**
 * setNewNonClientCompanyRoleDAO
 * 
 * @param newNonClientCompanyRoleDAO
 * void
 */
public void setNewNonClientCompanyRoleDAO(
		NewNonClientCompanyRoleDAO newNonClientCompanyRoleDAO) {
	this.newNonClientCompanyRoleDAO = newNonClientCompanyRoleDAO;
}


	/**
	 * update
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#update(java.lang.Object)
	 * 
	 */
	public <T> void update(T obj) throws PersistenceException {
		// TODO Auto-generated method stub
		
	}

	/**
	 * delete
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#delete(java.lang.Object)
	 * 
	 */
	public <T> void delete(T obj) throws PersistenceException {
		// TODO Auto-generated method stub
		
	}

	/**
	 * findByPrimaryKey
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#findByPrimaryKey(java.lang.String)
	 * 
	 */
	public <T> T findByPrimaryKey(String id) throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * findAll
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#findAll()
	 * 
	 */
	public <T> Collection<T> findAll() throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * add
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#add(java.lang.Object)
	 * 
	 */
	public <T> void add(T obj) throws PersistenceException {

		// TODO Auto-generated method stub
	}
	
	/**
	 * getNewClientRoleByClientId
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.SingleClientRoleObjectManager#getNewClientRoleByClientId(java.lang.Long, java.lang.String)
	 * 
	 */
	public ClientServiceRoleReq getNewClientRoleByClientId(Long clientId,String clientType)
			throws LookupException {
		
		return newNonClientCompanyRoleDAO.getNewClientRoleByClientId(clientId,clientType);
	}
	
	/**
	 * getClientRoleByRoleId
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.SingleClientRoleObjectManager#getClientRoleByRoleId(java.lang.String)
	 * 
	 */
	public TTscClientRole getClientRoleByRoleId(String roleId)throws LookupException{
		return clientRoleDAO.getClientRoleByRoleId(roleId);
	}

	/**
	 * findClientRolesByRoleIds
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.SingleClientRoleObjectManager#findClientRolesByRoleIds(java.util.List)
	 * 
	 */
	public List<TTscClientRole> findClientRolesByRoleIds(List<Integer> roleIds) {
		// TODO Auto-generated method stub
		return clientRoleDAO.findClientRolesByRoleIds(roleIds);
	}
}
